package com.zm.shop.goods.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.math.BigDecimal;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

import com.zm.shop.stock.entity.StockEntity;
import lombok.Data;

/**
 * 商品管理
 * 
 * @author Java2103
 * @email Java2103@qq.com
 * @date 2021-08-03 22:03:00
 */
@Data
@TableName("goods")
public class GoodsEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * ID
	 */
		@TableId(type = IdType.AUTO)
	private Integer id;
	/**
	 * 商品名称
	 */
	private String gname;
	/**
	 * 商品描述
	 */
	private String gdesc;
	/**
	 * 商品价格
	 */
	private BigDecimal gprice;
	/**
	 * 商品类型
	 */
	private Integer gtype;
	/**
	 * 商品状态
	 */
	private Integer gstatus;

//	@TableField(exist = false)
//	private Integer stock;
//
//	@TableField(exist = false)
//	private Integer wid;

	@TableField(exist = false)
	private StockEntity stockEntity;

	@TableField(exist = false)
	private List<GoodsPngEntity> goodsPngEntityList;


}
